tests: Run all tests through a randomized readdir()
authorColin Walters <walters@verbum.org>
Tue, 2 Jun 2015 02:34:14 +0000 (22:34 -0400)
committerColin Walters <walters@verbum.org>
Tue, 2 Jun 2015 16:02:59 +0000 (12:02 -0400)
commit92deafec46c64ec1f78459c094203ebeb7341be4
tree6b7b3dd1dbfb802efe349a4460a60b1926a47a0b
parent5ec148ec4dee33ee2d966e5f528841b4fb4bd014
tests: Run all tests through a randomized readdir()

Having undefined (but in practice rarely changing) ordering for
`readdir()` ended up screwing us over for bootloader config
generation; see https://bugzilla.redhat.com/show_bug.cgi?id=1226520

Let's make things significantly more likely to fail more quickly in
the future if similar bugs are introduced.  We accomplish this by
introducing a little `LD_PRELOAD` library that randomizes the results
of `readdir()`.
Makefile-tests.am
tests/libtest.sh
tests/readdir-rand.c [new file with mode: 0644]